﻿//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Logging Application Block
//===============================================================================

using System;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using EntLibContrib.Logging.Properties;

namespace EntLibContrib.Logging.Database.Configuration.Design
{
	sealed class LoggingDatabaseNodeMapRegistrar : NodeMapRegistrar
	{
		public LoggingDatabaseNodeMapRegistrar(IServiceProvider serviceProvider)
			: base(serviceProvider) { }

		public override void Register()
		{
			AddMultipleNodeMap(InternalResources.ExtendedDatabaseTraceListenerUICommandText,
												 typeof(LoggingDatabaseNode),
												 typeof(ExtendedDatabaseTraceListenerData));
		}
	}
}
